package com.sy.mapper;

import com.sy.dto.MemberDto;
import com.sy.dto.OrdersDto;
import com.sy.dto.SubjectDto;
import com.sy.entity.AdminUser;
import com.sy.entity.Coach;
import com.sy.entity.Member;
import com.sy.entity.Subject;
import com.sy.vo.AdminVo;
import com.sy.vo.CoachVo;
import com.sy.vo.MemberVo;

import java.util.List;


public interface AdminUserMapper {
    //1.管理员登录
    AdminUser selectByLogin(AdminUser AdminUser);

    //2.统计所有⽤户的订单信息,财务统计
    List<OrdersDto> selectAllMemberOrders(Member member);

    //3.新增课程
    boolean insertSubject(Subject subject);

    //4.删除课程
    boolean deleteSubject(Subject subject);

    //5.课程安排情况查询 具有搜索功能（指定时间,指定教练）
    List<Subject> selectByCoachAndTime(AdminVo adminVo);

    //6.录入教练的信息
    boolean insertCoach(Coach coach);

    //7.删除教练
    boolean deleteCoach(Coach coach);

    //8.查询所有会员信息
    List<Member> selectAllMembers(MemberVo memberVo);

    //9.根据用户id查询用户
    MemberDto selectMemberById(Integer id);

    //10.更新会员信息
    boolean updateMember(MemberDto memberDto);

    //11删除会员
    boolean deleteMemberById(MemberDto memberDto);

    //8.查询所有教练信息
    List<Coach> selectAllCoachs(CoachVo CocahVo);
    //12.新增会员
    boolean insertMember(Member member);

    List<SubjectDto> selectBySubjectName(SubjectDto subject);

    List<OrdersDto> selectAllOrdersByUserName(MemberVo memberVo);

    boolean deleteOrderById(OrdersDto ordersDto);
}
